package com.gopay.common.domain.solution;

import com.gopay.common.domain.BaseEntity;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.util.Date;

/**
 * CLASSNAME:TransSolutionOrderSnap
 * Description:交易查询排序结果实体类
 * DATE:2018/2/1/001
 * AUTHER:PANSHICHAO
 * www.gopay.com.cn Inc.All rights reserved.
 */
@Entity
@Table(name = "TRANS_SOLUTION_ORDER_SNAP")
public class TransSolutionOrderSnap extends BaseEntity{
    private String viewId;
    private int orderByNum;
    private String transCode;
    private String transName;
    private String prodCode;
    private String prodCodeName;
    private String transAuthority;
    private Date createdTs;
    private Date lastUpdTs;
    @Id
    @GenericGenerator(name="systemUUID",strategy="uuid")
    @GeneratedValue(generator="systemUUID")
    @Column(name = "VIEW_ID", unique = true, nullable = false, length = 50)
    public String getViewId() {
        return viewId;
    }
    public void setViewId(String viewId) {
        this.viewId = viewId;
    }
    @Column(name = "ORDER_BY_NUM",nullable = false)
    public int getOrderByNum() {
        return orderByNum;
    }
    public void setOrderByNum(int orderByNum) {
        this.orderByNum = orderByNum;
    }
    @Column(name = "TRANS_CODE",nullable = false,length=50)
    public String getTransCode() {
        return transCode;
    }

    public void setTransCode(String transCode) {
        this.transCode = transCode;
    }
    @Column(name = "TRANS_NAME",nullable = false,length=50)
    public String getTransName() {
        return transName;
    }

    public void setTransName(String transName) {
        this.transName = transName;
    }
    @Column(name = "TRANS_AUTHORITY",nullable = false,length=10)
    public String getTransAuthority() {
        return transAuthority;
    }

    public void setTransAuthority(String transAuthority) {
        this.transAuthority = transAuthority;
    }
    @Column(name = "CREATED_TS")
    @Temporal(TemporalType.TIMESTAMP)
    public Date getCreatedTs() {
        return createdTs;
    }

    public void setCreatedTs(Date createdTs) {
        this.createdTs = createdTs;
    }
    @Column(name = "LAST_UPD_TS")
    @Temporal(TemporalType.TIMESTAMP)
    public Date getLastUpdTs() {
        return lastUpdTs;
    }
    public void setLastUpdTs(Date lastUpdTs) {
        this.lastUpdTs = lastUpdTs;
    }

    @Column(name = "PROD_CODE",nullable = false,length=20)
    public String getProdCode() {
        return prodCode;
    }

    public void setProdCode(String prodCode) {
        this.prodCode = prodCode;
    }
    @Column(name = "PROD_CODE_NAME",nullable = false,length=20)
    public String getProdCodeName() {
        return prodCodeName;
    }

    public void setProdCodeName(String prodCodeName) {
        this.prodCodeName = prodCodeName;
    }
}
